<template>
  <el-dialog
    :visible.sync="visible"
    :before-close="beforeClose"
    :close-on-click-modal="false"
    append-to-body
    class="dialog-sm"
    top="30px"
    width="80%"
  >
    <task-postloan-time @success="getTabData" ref="passApproval"></task-postloan-time>
  </el-dialog>
</template>

<script>
import TaskPostloanTime from '@/credit/views/county/index/myTask/TaskPostloanTime'
export default {
  components: {
    TaskPostloanTime,
  },
  props: {
    visible: Boolean,
  },
  data() {
    return {}
  },
  computed: {},
  watch: {
    visible() {
      if (this.visible) {
        this.getTabData()
      }
    },
  },
  mounted() {},
  created() {},
  methods: {
    beforeClose() {
      this.$emit('update:visible', false)
    },
    getTabData() {
      this.$nextTick(() => {
        this.$refs.passApproval.getData()
      })
    },
  },
}
</script>
<style lang="scss" scoped></style>
